using System;
using System.ComponentModel;
using System.ServiceProcess;
namespace Lcygcc.WindowService.Host
{
	public class Service : ServiceBase
	{
		private IContainer components;
		public Service()
		{
			this.InitializeComponent();
		}
		protected override void OnStart(string[] args)
		{
			ServiceManage.Start();
		}
		protected override void OnStop()
		{
			ServiceManage.Stop();
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			base.ServiceName = "Service1";
		}
	}
}
